package dsk.demo.product.entity.gupiao;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName GMessage
 * @Author 戴世坤
 * @Date 2025/9/6 16:40
 */
@TableName("g_message")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class GMessage {
    @TableId
    private Long id;
    private Integer level;
    private String message;
    private String type;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date date;
}
